<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>新的全局常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="migration74.new-functions.html">« 新函数</a></li>
      <li style="float: right;"><a href="migration74.incompatible.html">不向后兼容的变更 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="migration74.html">从 PHP 7.3.x 移植到 PHP 7.4.x</a></li>
    <li>新的全局常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="migration74.constants" class="sect1">
 <h2 class="title">新的全局常量</h2>

 <div class="sect2" id="migration74.constants.core">
  <h3 class="title">PHP 核心中预定义的常量</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>PHP_WINDOWS_EVENT_CTRL_C</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>PHP_WINDOWS_EVENT_CTRL_BREAK</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration74.constants.mbstring">
  <h3 class="title">Multibyte String</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>MB_ONIGURUMA_VERSION</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration74.constants.sockets">
  <h3 class="title">Sockets</h3>

  <p class="para">添加了 FreeBSD 系统中特有的选项：</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>SO_LABEL</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>SO_PEERLABEL</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>SO_LISTENQLIMIT</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>SO_LISTENQLEN</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>SO_USER_COOKIE</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration74.constants.tidy">
  <h3 class="title">Tidy</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_ARTICLE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_ASIDE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_AUDIO</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_BDI</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_CANVAS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_COMMAND</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_DATALIST</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_DETAILS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_DIALOG</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_FIGCAPTION</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_FIGURE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_FOOTER</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_HEADER</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_HGROUP</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_MAIN</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_MARK</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_MENUITEM</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_METER</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_NAV</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_OUTPUT</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_PROGRESS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_SECTION</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_SOURCE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_SUMMARY</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_TEMPLATE</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_TIME</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_TRACK</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TIDY_TAG_VIDEO</code></strong></span>
   </li>
  </ul>
 </div>

</div></div></div></body></html>